package com.changpay.zywy.mvp.contract

import com.changpay.zywy.base.IModel
import com.changpay.zywy.base.IPresenter
import com.changpay.zywy.base.IView
import com.changpay.zywy.bean.*
import io.reactivex.Observable

interface ShopContract {


    interface View : IView {
        fun showBanner(data: List<ShopBanner>)
        fun showShopGoods(data : List<ShopGoodsBean>)
    }

    interface Presenter : IPresenter<View> {

        fun getBanner()
        fun getShop(token: String)
    }

    interface Model : IModel {
        fun getBanner(): Observable<HttpResult<List<ShopBanner>>>
        fun getShop(token: String): Observable<HttpResult<List<ShopGoodsBean>>>
    }
}